import 'package:flutter/material.dart';
void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: "Row Widget Demo",
      home: Scaffold(
        appBar:new AppBar(
          title: new Text("水平方向布局"),
      ),
          body:new Row(
            children: <Widget>[
              new RaisedButton(
                onPressed: (){},
                color:Colors.redAccent,
                child: new Text("Red Button"),
              ),

              //灵活的布局
              Expanded(child:new RaisedButton(
                onPressed: (){},
                color:Colors.orange,
                child: new Text("Orange Button"),
              ), ),

              new RaisedButton(
                onPressed: (){},
                color:Colors.blue,
                child: new Text("Blue Button"),
              ),

            ],
          )
      ),
    );
  }
}
